<include file="Index:header" />
<!--头部 end -->
<!-- container start --> 
<div class="sub-nav" sup="Project">
    <div class="sub-nav-inner">
        <div class="container">
            <!--Navigation start-->
            <div class="navbar navbar-inverse">
                <div class="navbar-inner">
                    <ul class="nav">
                        <li class="active"><a href="javascript:void(0)">投资详情页</a></li>
                    </ul>
                </div>
            </div>
            <!--Navigation end-->
        </div>
    </div>
</div>
<div class="row-fluid">
<div class="container paddtop">
	<!-- 上半部 start-->
<volist name="borrow" id="v">
<!-- 普通标 state-->
<div class="wall" style="position:relative">    
    <div class="project-summary">
        <div class="row-fluid">  
            <div class="span6">
                <div style="min-height: 70px;">
                    <h3>
                        {$v.title}
                    </h3>
                </div>
                <p class="project-tags" style="margin-bottom: 0;">
                
                    <if condition="($v.state eq 1)  OR  ($v.state eq 2)  OR  ($v.state eq 10)">
                     <span class="label label-success">
                         投标中
                     </span>
                    <else />
                     <span class="label">{$v.state_name}</span>
                    </if>
                   
                    <span class="tag" data-rel="tooltip" title="{$v.type_name}"><i class="icon icon-darkgray icon-tag"></i>{$v.type_name}</span>
                    <eq name="v.candra" value="1"><span class="tag" data-rel="tooltip" title="按天计算"><i class="icon icon-darkgray icon-clock"></i>天</span></eq>
                    <gt name="v.reward_type" value="0"><span class="tag" data-rel="tooltip" title="奖励：{$v.reward}"><i class="icon icon-darkgray icon-archive"></i>奖励</span></gt>    
                    <eq name="v.stick" value="1"><span class="tag" data-rel="tooltip" title="推荐"><i class="icon icon-darkgray icon-lightbulb"></i>推荐</span></eq>
                    <eq name="v.code" value="1"><span class="tag" data-rel="tooltip" title="需要密码"><i class="icon icon-darkgray icon-locked"></i>密码</span></eq>
                </p>

            </div>
            <div class="span3">
                <ul class="project-summary-items">
                	<li>
                        <if condition="$v.email_audit gt 1"><span class="invest_rz"><i class="icon32 icon-white icon-envelope-closed"  data-rel="tooltip" title="邮箱已认证"></i></span></if>
                        <if condition="$v.certification gt 1"><span class="invest_rz"><i class="icon32 icon-white icon-profile"  data-rel="tooltip" title="实名已认证"></i></span></if>
                        <if condition="$v.video_audit gt 1"><span class="invest_rz"><i class="icon32 icon-white icon-comment-video"  data-rel="tooltip" title="视频已认证"></i></span></if>
                        <if condition="$v.site_audit gt 1"><span class="invest_rz"><i class="icon32 icon-white icon-users"  data-rel="tooltip" title="现场已认证"></i></span></if>
                        <if condition="$v.cellphone_audit gt 1"><span class="invest_rz"><i class="icon32 icon-white icon-cellphone" data-rel="tooltip" title="手机已认证"></i></span></if>
                    </li>
                    <li><span class="title">审核时间</span>
                        <span class="data-tips">
                            {$v.checktime|date="Y-m-d H:i:s",###}
                        </span>
                    </li>
                    <if condition="$v.limittime gt 0">
                    <li><span class="title">还款时间</span>
                        <span class="data-tips">
                            {$v.limittime|date="Y-m-d H:i:s",###}
                        </span>
                    </li>
                    </if>
                </ul>
            </div>
            <div class="span3">
                <ul class="project-summary-items">
                    <li><span class="title">融资金额</span>{$v.money|number_format=2,'.',','} 元</li>
                    <li><span class="title">年化收益</span> 
                        <span class="important data-tips">
                        {$v.rates}%
                    	</span>
                    </li>
                    <li><span class="title">融资期限</span>
                        <span class="data-tips">
                            {$v.deadlines}
                        </span>
                    </li>
                    <li><span class="title">总投标数</span>
                        <span class="data-tips">
                            {$v.bid_records_count} 笔 <a href="#rEcord" data-toggle="modal" data-rel="tooltip" > 查看记录</a>
                        </span>
                    </li>
                </ul>
            </div>       
    </div>
    <hr class="dashed">
    <div class="row-fluid">
        <div class="span6">
            <div style="margin-top: 10px;">
                <div class="project-progress pull-left" style="margin-top: 3px; margin-right: 5px;">
    
                    <div class="progress progress-striped active">
                        <div class="bar" style="width: {$v.ratio}%;"></div>
                    </div>
                </div>
                <p class="project-progress-desc hidden-phone">
                    已融资 ：{$v.already|number_format=2,'.',','}元
                </p>
    			<p style="margin-bottom: 0; margin-top: 10px" class="hidden-phone">
                    <if condition="($v.state eq 7) OR ($v.state eq 8) OR ($v.state eq 9) ">
                    距还款时间还需：<span id="limittimes" endtime="{$v.limittime|date="Y/m/d H:i:s",###}"></span>
                    <else />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;剩余：<span id="limittimes" endtime="{$v.endtime|date="Y/m/d H:i:s",###}"></span>
                    </if>
                </p>
            </div>
        </div>
        <div class="span3">
            <ul class="project-summary-items">
                <li><span class="title">可投金额</span> <span class="important">
                {$v.surplus|number_format=2,'.',','}
                </span> 元
                </li>
                <li><span class="title">生效状态</span><span class="important"><if condition="$v.type eq 8">即投即算<else/>满标复审后生效</if></span></li>
                <li><span class="title">还款方式</span>
                            <span class="important">{$v.way}</span>
                    </li>
            </ul>
        </div>
        <div class="span3">
                <div style="margin-top: 18px">
                    <if condition="($v.state eq 1)  OR  ($v.state eq 2)  OR  ($v.state eq 10)">
                    <a class="btn btn-primary invest_btn" href="#tEnder" data-toggle="modal" data-rel="tooltip" >立即投资</a>&nbsp;&nbsp;
                    
                    <else />
                    <a class="btn invest_btn" data-toggle="modal" data-rel="tooltip" >{$v.state_names}</a>
                    </if>
                </div>
        </div>
    </div>
</div>
</div>
<!-- 普通标 state-->


    <!-- 上半部 end-->
    <if condition="($v.type eq 1)  OR  ($v.type eq 2)">
    <!-- 进度 -->
    <div class="row-fluid invest_plan">
    	<h4>抵押物审批进度</h4>
    	<div class="sp2">
        	<p class="to"><span class="icon icon-orange icon-flag"></span><span class="schedule complete"></span></p>
            <p class="time">{$v.time|date="Y-m-d H:i:s",###}</p>
            <p class="state">提交申请</p>
        </div>
        <div class="sp2">
        	
        	<p class="to"><span class="icon icon-orange icon-flag"></span><span class="schedule complete"></span></p>
            <p class="time">{$v.time|date="Y-m-d H:i:s",###}</p>
            <p class="state">开始审批</p>
        </div>
        <div class="sp2">
            <p class="to"><span class="icon icon-orange icon-flag"></span><span class="schedule complete"></span></p>
            <p class="time">{$v.checktime|date="Y-m-d H:i:s",###}</p>
            <p class="state">审批通过</p>
        </div>
        <div class="sp2">
        	<if condition="$v.state gt 0">
                <if condition="$v.state eq 1">
                <p class="to"><span class="icon icon-green icon-sent"></span><span class="schedule course"></span></p>
                <p class="time">现在</p>
                <else/>
                <p class="to"><span class="icon icon-orange icon-flag"></span><span class="schedule complete"></span></p>
                <p class="time">{$v.checktime|date="Y-m-d H:i:s",###}</p>
                </if>
            <else/>
            <p class="to"><span class="icon icon-darkgray icon-clock"></span><span class="schedule not"></span></p>
            <p class="time">暂无预计时间</p>
            </if>
            <p class="state">抵押完成</p>
        </div>
        <div class="sp2">
        	<if condition="$v.state gt 2">
                <if condition="$v.state eq 5">
                <p class="to"><span class="icon icon-green icon-sent"></span><span class="schedule course"></span></p>
                <p class="time">现在</p>
                <else/>
                <p class="to"><span class="icon icon-orange icon-flag"></span><span class="schedule complete"></span></p>
                <p class="time">{$v.reviewtime|date="Y-m-d H:i:s",###}</p>
                </if>
            <else/>
            <p class="to"><span class="icon icon-darkgray icon-clock"></span><span class="schedule not"></span></p>
            <p class="time">暂无预计时间</p>
            </if>
            <p class="state">财务放款</p>
        </div>
        <div class="sp2">
        	<if condition="$v.state eq 7 || $v.state eq 9 || $v.state eq 10">
                <if condition="$v.state eq 7">
                <p class="to"><span class="icon icon-green icon-sent"></span><span class="schedule course"></span></p>
                <p class="time">现在</p>
                <else/>
                <p class="to"><span class="icon icon-orange icon-flag"></span><span class="schedule complete"></span></p>
                <p class="time">{$v.reviewtime|date="Y-m-d H:i:s",###}</p>
                </if>
            <else/>
            <p class="to"><span class="icon icon-darkgray icon-clock"></span><span class="schedule not"></span></p>
            <p class="time">暂无预计时间</p>
            </if>
            <p class="state">贷后管理中</p>
        </div>
    </div>
    <!-- 进度 end-->
    </if>
    <if condition="$Think.session.user_uid gt 0">
    <!-- 下半部 start-->
    <div class="row-fluid">
    <div class="span9">
    <div class="accordion invest_below" id="accordion2">
      <div class="accordion-group">
        <div class="accordion-heading">
          <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
            借入详情
          </a>
        </div>
        <div id="collapseOne" class="accordion-body collapse in">
          <div class="accordion-inner">
            <p>
            	{$v.content}
            </p>
          </div>
        </div>
      </div>
      <if condition="$v.type eq 1 or $v.type eq 2">
     <div class="accordion-group">
        <div class="accordion-heading">
          <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseO">
            抵押物信息
          </a>
        </div>
        <div id="collapseO" class="accordion-body collapse">
          <div class="accordion-inner">
            <p>
            	{$v.mortgage}
            </p>
          </div>
        </div>
      </div>
      </if>
      <div class="accordion-group">
        <div class="accordion-heading">
          <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
            还款信用
          </a>
        </div>
        <div id="collapseThree" class="accordion-body collapse">
          <div class="accordion-inner">
          	<dl class="invest_px span12">
                <dd>{$v.standard} 次流标</dd>
                <dd>{$v.stay_number} 笔待还款</dd>
                <dd>{$v.amount_number} 笔已成功还款</dd>
                <dd>{$v.overdue_number} 笔逾期</dd>
            </dl>
          </div>
        </div>
      </div>
      <div class="accordion-group">
        <div class="accordion-heading">
          <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour">
            个人资料
          </a>
        </div>
        <div id="collapseFour" class="accordion-body collapse">
          <div class="accordion-inner">
          	<dl class="invest_px span12">
            	<dd>真实姓名：{$v.name}</dd>
                <dd>性别：{$v.gender}</dd>
                <dd>民族：{$v.national}</dd>
                <dd>出生日期：{$v.born|date="Y-m-d",###}</dd>
            	<dd>身份证：{$v.idcard|substr=0,13}*****</dd>
                <dd>籍贯：{$v.native_place}</dd>
                <dd>所在地：{$v.location}</dd>
                <dd>婚姻状况：{$v.marriage}</dd>
                <dd>学历：{$v.education}</dd>
                <dd>月收入：{$v.monthly_income}</dd>
                <dd>住房条件：{$v.housing}</dd>
                <dd>购车情况：{$v.buy_cars}</dd>
                <dd>邮箱：{$v.email}</dd>
            </dl>
          </div>
        </div>
      </div>
      <div class="accordion-group">
        <div class="accordion-heading">
          <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFive">
            账户详情
          </a>
        </div>
        <div id="collapseFive" class="accordion-body collapse">
          <div class="accordion-inner">
          	<dl class="invest_px span12">
            	<dd>账户总额： {$v.total_money|number_format=2,'.',','}</dd>
                <dd>待还总额： {$v.stay_still|number_format=2,'.',','} </dd>
                <dd>借入总额： {$v.amount_total|number_format=2,'.',','}</dd>
                <dd>待收总额： {$v.due_in|number_format=2,'.',','}</dd>
            </dl>
          </div>
        </div>
      </div>
    </div>
    </div>
    <div class="span3">
    	<div class="wall">
        <h3>相关资料</h3>
        <div class="evidenceList">
        	<hr class="dashed" />
            <h4>合同协议</h4>
            <ul class="thumbnails" id="file_contents">
            <foreach name="img" item="vo" key="kid">
                <li id="i{$kid}" class="thumbnail">
                    <a class="cboxElement" href="__PUBLIC__/uploadify/uploads/mark/{$vo}">
                    <img id="feil{$kid}" src="__PUBLIC__/uploadify/uploads/mark/{$vo}">
                    </a>
                </li>
            </foreach>
            </ul>  
            <hr class="dashed" />
            <h4>考查相册</h4>
            <ul class="thumbnails" id="file_contents">
            <foreach name="imgs" item="vo" key="kid">
                <li id="i{$kid}" class="thumbnail">
                    <a class="cboxElement" href="__PUBLIC__/uploadify/uploads/mark/{$vo}">
                    <img id="feil{$kid}" src="__PUBLIC__/uploadify/uploads/mark/{$vo}">
                    </a>
                </li>
            </foreach>
            </ul>  
            <hr class="dashed" />
            <h4>其它证明材料</h4>
            <ul class="thumbnails" id="file_contents">
            <foreach name="certi" item="vo" key="kid">
                <li id="i{$kid}" class="thumbnail">
                    <a class="cboxElement" href="__PUBLIC__/uploadify/uploads/approve/{$vo}">
                    <img id="feil{$kid}" src="__PUBLIC__/uploadify/uploads/approve/{$vo}">
                    </a>
                </li>
            </foreach>
            </ul>  
        </div>
        </div>
    </div>
    </div>
    <else/>
    <div class="invest_login">只有<a href="__ROOT__/Logo/register.html">注册</a>用户才可以查看个人信息！现在<a href="__ROOT__/Logo/login.html">登录</a></div>
    </if>
     <!-- 下半部 end-->
     <!-- 用户留言 start
     <form method="post" action="__URL__/addleave">
     <div>
     	<textarea class="editor"name="content" style="width:100%;height:300px;"></textarea>
     </div>
     <div class="invest_refer">
     <button type="submit" class="btn btn-primary span2" >确认提交</button>
     </div>
     </form>
    用户留言 end-->
</div>
<!-- container end -->
<!--底部  start-->
<!--投标记录 start-->
<div id="rEcord" class="modal hide fade invest_modals">
    <div class="modal-header">
      <a class="close" data-dismiss="modal" >&times;</a>
      <h3>投标记录</h3>
    </div>
    <if condition="$Think.session.user_uid gt 0">
    <div class="modal-body">
        <table class="table table-striped table-bordered table-condensed">
        	<thead>
              <tr>
                <th>投标人</th>
                <th>年利率</th>
                <th>投标金额(元)</th>
                <th>投标时间</th>
                <th>状态</th>
              </tr>
            </thead>
<foreach name="v.bid_records" item="vo">
            <tbody>
              <tr>
                <td>
                <if condition="$vo['actionname']['aid'] gt 0">
                <span class="badge badge-success">债</span>
                </if>
                  {$vo.uname}
                </td>
                <td>
                  {$v.rates}%
                </td>
                <td>
                  {$vo.actionname.operation|number_format=2,'.',','}
                </td>
                <td>
                  {$vo.time|date="Y-m-d H:i:s",###}
                </td>
                <td>
                  成功
                </td>
              </tr>
            </tbody>
</foreach>
        </table>
    </div>
    <else/>
    <div class="invest_login">只有<a href="__ROOT__/Logo/register.html">注册</a>用户才可以查看个人信息！现在<a href="__ROOT__/Logo/login.html">登录</a></div>
    </if>
</div>
<!--投标记录 end-->
<!--投标确认 start-->
<if condition="$v.type eq 7">
<div id="tEnder" class="modal hide fade invest_modals">
    <div class="modal-header">
      <a class="close" data-dismiss="modal" >&times;</a>
      <h3>认购确认</h3>
    </div>
	<if condition="$Think.session.user_uid gt 0">
    <div class="modal-body">
        <div class="span6">
        <dl class="invest_bid">
        	<dd class="invest_title">
            	{$v.title}
            </dd>
            <dd class="project-tags" style="margin-bottom: 0;">
                
                    <if condition="($v.state eq 1)  OR  ($v.state eq 10)">
                     <span class="label label-success">
                         <if condition="$v.type eq 7">
                         认购中
                         <else/>
                         投标中
                         </if> 
                     </span>
                    <else />
                     <span class="label">{$v.state_name}</span>
                    </if>
                   
                    <span class="tag" data-rel="tooltip" title="{$v.type_name}"><i class="icon icon-darkgray icon-tag"></i>{$v.type_name}</span>
                    <eq name="v.candra" value="1"><span class="tag" data-rel="tooltip" title="按天计算"><i class="icon icon-darkgray icon-clock"></i>天</span></eq>
                    <gt name="v.reward_type" value="0"><span class="tag" data-rel="tooltip" title="奖励：{$v.reward}"><i class="icon icon-darkgray icon-archive"></i>奖励</span></gt>    
                    <eq name="v.stick" value="1"><span class="tag" data-rel="tooltip" title="推荐"><i class="icon icon-darkgray icon-lightbulb"></i>推荐</span></eq>
                    <eq name="v.code" value="1"><span class="tag" data-rel="tooltip" title="需要密码"><i class="icon icon-darkgray icon-locked"></i>密码</span></eq>
                </dd>
            <dd>年利率：{$v.rates}%&nbsp;&nbsp;&nbsp;&nbsp;
            投标奖励：
            {$v['rewards']?$v['rewards']:'无'}
            </dd>
            <dd>
                每份认购金额：{$v.min_name|number_format=2,'.',','} &nbsp;&nbsp;&nbsp;&nbsp;
                最低认购期限：{$v.min_limits}
            </dd>
            <dd>借款金额：<span class="invest_price">{$v.money|number_format=2,'.',','}</span> 元&nbsp;&nbsp;&nbsp;&nbsp;还可认购：{$v.subscribe} 份</dd>
        	<dd>可用余额 {$money.available_funds|number_format=2,'.',','} 元</dd>
        	
        </dl>
        </div>
        <div class="span6">
        <form method="post" action="__URL__/flowUpdate">
        <input name="id" type="hidden" value="{$v.id}" />
        <input name="update_uid" type="hidden" value="{$v.uid}" />
        <dl class="invest_bid">
            <dd>
            <span class="invest_le">认购份数：</span>
            	<a class="icon icon-blue icon-minus invest_icon" href="javascript:void(0)" onClick="Totalprice(1,{$v.subscribe},{$money.available_funds},{$v.min})"></a>
                <span class="input-append">
                	<input id="price" name="copies" type="text" value="1" class="span4"  onBlur="Totalprice(4,{$v.subscribe},{$money.available_funds},{$v.min})"/>
                    <span class="add-on" style="height: 18px;">份</span>
                </span>
                <a class="icon icon-blue icon-plus invest_icon_r" href="javascript:void(0)" onClick="Totalprice(2,{$v.subscribe},{$money.available_funds},{$v.min})"></a>
                <a href="javascript:void(0)" class="invest_icon_r" onClick="Totalprice(3,{$v.subscribe},{$money.available_funds},{$v.min})">最大份数</a>
            </dd>
            <dd>
            <span class="invest_le">认购期限：</span>
            	<a class="icon icon-blue icon-minus invest_icon" href="javascript:void(0)" onClick="Totalmonth(1,{$v.min_limit},{$v.also_deadline})"></a>
                <span class="input-append">
                	<input id="month" name="deadline" type="text" value="{$v.min_limit}" class="span4"  onBlur="Totalmonth(4,{$v.min_limit},{$v.also_deadline})"/>
                    <span class="add-on" style="height: 18px;"><if condition="$v.candra eq 0">月<else/>天</if></span>
                </span>
                <a class="icon icon-blue icon-plus invest_icon_r" href="javascript:void(0)" onClick="Totalmonth(2,{$v.min_limit},{$v.also_deadline})"></a>
                <a href="javascript:void(0)" class="invest_icon_r" onClick="Totalmonth(3,{$v.min_limit},{$v.also_deadline})">最大期限</a>
            </dd>
           <!-- <dd>
            是否续购：
            <label class="radio"><input type="radio" name="continue" value="1" class="noty" checked/> 是</label>
            <label class="radio"><input type="radio" name="continue" value="0" class="noty" /> 否</label>
            </dd>-->
            <eq name="v.code" value="1">
            <dd><span class="invest_le">密码标密码：</span><input type="password" class="span6" name="password"/></dd>
            </eq>
            <dd><span class="invest_le">支付密码：</span><input type="password" class="span6" name="pay_password"/></dd>
            <dd>友情提示：<span class="red">初始支付密码为登陆密码。</dd>
            <dd class="controls"><span class="invest_le">验证码：</span>
            <input type="text" id="CaptchaInputText" class="span2" name="proving"/>
            <img class="CaptchaImage" id="verifyImg" src='__APP__/Public/verify/' onClick="changeVerify()" maxlength="4" title="点击刷新验证码" style="cursor:pointer;padding-left: 10px;"/>
            </dd>
            <dd><button type="submit" class="btn btn-primary span4" >确认提交</button></dd>
        </dl>
        </form>
        </div>
    </div>
    <else/>
    <div class="invest_login">只有<a href="__ROOT__/Logo/register.html">注册</a>用户才可以查看个人信息！现在<a href="__ROOT__/Logo/login.html">登录</a></div>
    </if>
<else/>
<div id="tEnder" class="modal hide fade invest_modals">
    <div class="modal-header">
      <a class="close" data-dismiss="modal" >&times;</a>
      <h3>投标确认</h3>
    </div>
	<if condition="$Think.session.user_uid gt 0">
    <div class="modal-body">
        <div class="span6">
        <dl class="invest_bid">
        	<dd class="invest_title">
            {$v.title}
            </dd>
            <dd class="project-tags" style="margin-bottom: 0;">
                
                    <if condition="($v.state eq 1)  OR  ($v.state eq 2)  OR  ($v.state eq 10)">
                     <span class="label label-success">
                         <if condition="$v.type eq 7">
                         认购中
                         <else/>
                         投标中
                         </if> 
                     </span>
                    <else />
                     <span class="label">{$v.state_name}</span>
                    </if>
                   
                    <span class="tag" data-rel="tooltip" title="{$v.type_name}"><i class="icon icon-darkgray icon-tag"></i>{$v.type_name}</span>
                    <eq name="v.candra" value="1"><span class="tag" data-rel="tooltip" title="按天计算"><i class="icon icon-darkgray icon-clock"></i>天</span></eq>
                    <gt name="v.reward_type" value="0"><span class="tag" data-rel="tooltip" title="奖励：{$v.reward}"><i class="icon icon-darkgray icon-archive"></i>奖励</span></gt>    
                    <eq name="v.stick" value="1"><span class="tag" data-rel="tooltip" title="推荐"><i class="icon icon-darkgray icon-lightbulb"></i>推荐</span></eq>
                    <eq name="v.code" value="1"><span class="tag" data-rel="tooltip" title="需要密码"><i class="icon icon-darkgray icon-locked"></i>密码</span></eq>
                </dd>
            <dd>年利率：{$v.rates}%&nbsp;&nbsp;&nbsp;&nbsp;
            投标奖励：
            {$v['rewards']?$v['rewards']:'无'}
            </dd>
            <dd>
                最小投标金额：{$v.min_name|number_format=2,'.',','}&nbsp;&nbsp;&nbsp;&nbsp;
                最大投标金额：<if condition="$v.max_name gt 0">{$v.max_name|number_format=2,'.',','}<else/>无限</if>
            </dd>
            <dd>借款金额：<span class="invest_price">{$v.money|number_format=2,'.',','}</span> 元&nbsp;&nbsp;&nbsp;&nbsp;还需：{$v.surplus|number_format=2,'.',','} 元</dd>
        	<dd>可用余额： {$money.available_funds|number_format=2,'.',','} 元&nbsp;&nbsp;&nbsp;&nbsp;
           
            </dd>
        	
        </dl>
        </div>
        <div class="span6">
        <if condition="$v.type eq 8">
        <form method="post" action="__URL__/assureUpdate">
        <else/>
        <form method="post" action="__URL__/investUpdate">
        </if>
        <input name="id" type="hidden" value="{$v.id}" />
        <input name="update_uid" type="hidden" value="{$v.uid}" />
        <dl class="invest_bid">
            <dd>
            <span class="invest_le">
            投标金额：
            </span>
            	<a class="icon icon-blue icon-minus invest_icon" href="javascript:void(0)" onClick="Totalprice(1,{$v.surplus},{$money.available_funds},{$v.max},{$v.min})"></a>
                <span class="input-prepend input-append">
                	<span class="add-on" style="height: 18px;">￥</span>
                	<input id="price" name="price" type="text" value="{$v.min}" class="span4"  onBlur="Totalprice(4,{$v.surplus},{$money.available_funds},{$v.max},{$v.min})"/>
                    <span class="add-on" style="height: 18px;">.00</span>
                </span>
                <a class="icon icon-blue icon-plus invest_icon_r" href="javascript:void(0)" onClick="Totalprice(2,{$v.surplus},{$money.available_funds},{$v.max},{$v.min})"></a>
                <a class ="invest_icon_r" href="javascript:void(0)" onClick="Totalprice(3,{$v.surplus},{$money.available_funds})">最大</a>
            </dd>
            <eq name="v.code" value="1">
            <dd><span class="invest_le">密码标密码：</span><input type="password" class="span6" name="password"/></dd>
            </eq>
            <dd><span class="invest_le">支付密码：</span><input type="password" class="span6" name="pay_password"/></dd>
            <dd>友情提示：<span class="red">初始支付密码为登陆密码。</dd>
            <dd class="controls"><span class="invest_le">验证码：</span>
            <input type="text" id="CaptchaInputText" class="span2" name="proving"/>
            <img class="CaptchaImage" id="verifyImg" src='__APP__/Public/verify/' onClick="changeVerify()" maxlength="4" title="点击刷新验证码" style="cursor:pointer;padding-left: 10px;"/>
            </dd>
            <dd><button type="submit" class="btn btn-primary span4" >确认提交</button></dd>
        </dl>
        </form>
        </div>
    </div>
    <else/>
    <div class="invest_login">只有<a href="__ROOT__/Logo/register.html">注册</a>用户才可以查看个人信息！现在<a href="__ROOT__/Logo/login.html">登录</a></div>
    </if>
</if>
</volist>
</div>
</div>
<!--二维码-->
<script>
function qrcode(id){
	var qrd=$('#qrd'+id).val();
	if(qrd==1){
		$('#qrcode'+id).fadeIn("slow");
		$('#qrd'+id).val(0);
	}else{
		$('#qrcode'+id).fadeOut("slow");
		$('#qrd'+id).val(1);
	}
	var loading='<div class="invest_loading"><div><img src="__PUBLIC__/bootstrap/img/spinner-mini.gif"/></div><div></div> </div>';
		$("#qrdimg"+id).html(loading);
	$("#qrdimg"+id).load("__URL__/qrcodeajax", {id:id});
}
</script>
<!--二维码 end-->
</script>
<!--二维码 end-->
<include file="Index:footer" />
<script src="__PUBLIC__/bootstrap/js/jquery.colorbox.min.js"></script>
<script>
$(document).ready(function(){
//gallery image controls example
	//gallery delete
	$('.thumbnails').on('click','.gallery-delete',function(e){
		e.preventDefault();
		//get image id
		//alert($(this).parents('.thumbnail').attr('id'));
		$(this).parents('.thumbnail').fadeOut();
	});
	//gallery edit
	$('.thumbnails').on('click','.gallery-edit',function(e){
		e.preventDefault();
		//get image id
		//alert($(this).parents('.thumbnail').attr('id'));
	});

	//gallery colorbox
	$('.thumbnail a').colorbox({rel:'thumbnail a', transition:"elastic", maxWidth:"95%", maxHeight:"95%"});
	$('.Thumbnail a').colorbox({rel:'Thumbnail a', transition:"elastic", maxWidth:"95%", maxHeight:"95%"});
	//gallery fullscreen
	$('#toggle-fullscreen').button().click(function () {
		var button = $(this), root = document.documentElement;
		if (!button.hasClass('active')) {
			$('#thumbnails').addClass('modal-fullscreen');
			if (root.webkitRequestFullScreen) {
				root.webkitRequestFullScreen(
					window.Element.ALLOW_KEYBOARD_INPUT
				);
			} else if (root.mozRequestFullScreen) {
				root.mozRequestFullScreen();
			}
		} else {
			$('#thumbnails').removeClass('modal-fullscreen');
			(document.webkitCancelFullScreen ||
				document.mozCancelFullScreen ||
				$.noop).apply(document);
		}
	});
});
</script>